package com.sxpcwlkj.sxpcwlkj.entity.bo;

import com.sxpcwlkj.common.utils.DateUtil;
import com.sxpcwlkj.framework.config.ValidatedGroupConfig;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;
import org.springframework.format.annotation.DateTimeFormat;
import com.sxpcwlkj.sxpcwlkj.entity.StoreAdvertising;
import com.sxpcwlkj.datasource.entity.BaseEntity;

/**
* 广告Bo
*
* @author 西决
* @Doc <a href='https://www.mmsadmin.com'>MMS文档</a>
*/
@Data
@AutoMapper(target = StoreAdvertising.class, reverseConvertGenerate = false)
@EqualsAndHashCode(callSuper=false)
public class StoreAdvertisingBo  extends BaseEntity {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@NotBlank(message = "ID不能为空" ,groups = {ValidatedGroupConfig.update.class})
	private String id;
	/**
	 * 广告位ID
	 */
	@NotBlank(message = "广告位ID不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String advertisingId;
	/**
	 * 开始时间
	 */
	@NotBlank(message = "开始时间不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String startTime;
	/**
	 * 到期时间
	 */
	@NotBlank(message = "到期时间不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String endTime;
	/**
	 * 路由地址
	 */
	@NotBlank(message = "路由地址不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String routeUrl;
	/**
	 * 图片地址
	 */
	@NotBlank(message = "图片地址不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String imageUrl;
	/**
	 * 路由参数
	 */
	@NotBlank(message = "路由参数不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String routeParameter;
}
